﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.workers {
    import Classes.*;

    public class FactoryWorkers extends Workers {

        public static const CONTRACT_NAME:String = "contractName";

        override public function get maxWorkers():int{
            var _local1:Item = Global.gameSettings.getItemByName(this.contractName);
            var _local2:int;
            if (_local1.workers){
                _local2 = _local1.workers.members.length;
            };
            return (_local2);
        }
        public function get contractName():String{
            return (getAttribute(CONTRACT_NAME, ""));
        }
        public function set contractName(_arg1:String):void{
            setAttribute(CONTRACT_NAME, _arg1);
        }

    }
}//package Modules.workers 
